<template>
  <div class="text-center w-full">
    <test1 :passData="testPass" @clicks="parentsDo"></test1>
  </div>
</template>

<script lang="ts" setup>
import { ref, reactive } from 'vue'
import { getTest } from '@/api/api'
import Test1 from '@/components/test1.vue'
import {useRouter} from "vue-router"
const router = useRouter()

let testPass = '测试父组件传值'

const parentsDo = (e: any) => {
  console.log(e)
}

</script>

<style lang="scss" scoped>

</style>
